function getloginmodel() {
    var storage = window.sessionStorage;
    return $.parseJSON(storage.getItem('loginmodel'));
}
function isAuthority(value) {
    var storage = window.sessionStorage;
    var qx = $.parseJSON(storage.getItem('loginmodel')).AuthorityIds.split(",");
    if (qx.indexOf(value) >= 0) {
        return true;
    }
    return false;
}